﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AliyunOpenSearch4Net.Base;

namespace AliyunOpenSearch4Net.Index
{
    class IndexRebuildRequest : RequestBase<Response>
    {
        public IndexRebuildRequest()
            : base("createtask")
        {

        }

        public string Operate { get; set; }

        public string TableName { get; set; }

        protected override void RegisterQueryItems(IList<KeyValuePair<string, string>> list)
        {
            if (!string.IsNullOrEmpty(Operate))
                list.Add("operate", Operate);

            list.Add("table_name", TableName);
        }
    }
}
